<template>
    <div>
        <div>
            <van-search
                    v-model="value"
                    :placeholder="searchTxt"
                    input-align="center"
                    show-action
                    :clearable="cleanValue"
                    action-text="返回"
                    @search="onSearch"
                    @cancel="onCancel"
            ></van-search>
            <van-cell title="最近搜索">

            </van-cell>

            <van-cell title="热门搜素">

            </van-cell>
        </div>
    </div>
</template>
<script>
    export default {
        name: "Search",
        data() {
            return {
                value: "",
                searchTxt: "红米K30至尊版"
            }
        }, methods: {
            onSearch(val) {
            },
            onCancel() {
                this.$router.back()
            }, cleanValue() {
                this.value = ""
            }
        }
    }
</script>

<style scoped>

</style>
